package com.yiyuzi.admin.token.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yiyuzi.admin.token.domain.TokenEntity;
import com.yiyuzi.admin.user.domain.entity.UserEntity;

/**
 * @author yiyuzi
 * @date 2021/5/14 17:10
 */

public interface TokenService extends IService<TokenEntity> {

    String createToken(Long userId);

    boolean isValid(String token);

    TokenEntity getByToken(String token);

    UserEntity getUserByToken(String token);
}
